package com.example.content_client.entity;

/**
 * @author: snjgm
 * data: 2022/7/19
 * description:
 */
public class User {

    //序号
    public int id;
    //姓名
    public String name;
    //年龄
    public int age;
    //是否婚配
    public boolean married;

    public User() {
    }

    public User(String name, int age, boolean married) {
        this.name = name;
        this.age = age;
        this.married = married;
    }

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public boolean isMarried() {
        return married;
    }



    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", married=" + married +
                '}';
    }
}
